package com.ge.modules.sys.service.impl;

import com.ge.modules.dao.TbTechnicianDao;
import com.ge.modules.entity.TbTechnicianEntity;
import com.ge.modules.sys.service.SysTechnicianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class SysTechnicianServiceImpl implements SysTechnicianService {
    @Autowired
    private TbTechnicianDao technicianDao;

    @Override
    public TbTechnicianEntity queryObject(Integer technicianId) {
        return technicianDao.queryObject(technicianId);
    }

    @Override
    public List<TbTechnicianEntity> queryList(Map<String, Object> map) {
        return technicianDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return technicianDao.queryTotal(map);
    }

    @Override
    public void save(TbTechnicianEntity technician) {
        technicianDao.save(technician);
    }

    @Override
    public void update(TbTechnicianEntity technician) {
        technicianDao.update(technician);
    }

    @Override
    public void delete(Integer technicianId) {
        technicianDao.delete(technicianId);
    }

    @Override
    public void deleteBatch(Integer[] technicianIds) {
        technicianDao.deleteBatch(technicianIds);
    }

    @Override
    public TbTechnicianEntity queryById(Integer id) {
        return technicianDao.queryById(id);
    }

}
